
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<!DOCTYPE html>
<html>
    <head>
        <sj:head />
        <title>Create User</title>
        <script src="js/jquery.cookie.js"></script>
        <script src="js/coms.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"> </script>
     
        <script type="text/javascript">
            $(document).ready(function() {
                
               
                $("#myHero").css("padding-top","10px");
                
            
        });
        </script>
    </head>
    <body>
        <s:include value="/jsp/welcomeHeader.jsp"/>            
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span3">
                    <s:include value="/jsp/homeLogin.jsp"/>                           
                </div>                
                <div class="span9">
                    <div class="hero-unit" align="center" id="myHero">
                        <s:form  action="%{action}">
                            <table align="center">
                                <tr>
                                    <td colspan="2"><h2>Register</h2></td>
                                </tr>
                                <tr>
                                    <td><s:text name="fieldLabel.username"/></td>
                                    <td ><s:textfield name="user.username" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.password"/></td>
                                    <td ><s:password name="user.password" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.emailAddress"/></td>
                                    <td ><s:textfield name="user.emailAddress" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.alternateEmail"/></td>
                                    <td ><s:textfield name="user.profile.alternateEmail" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.gender"/></td>

                                    <td ><s:radio list="#@java.util.LinkedHashMap@{true:'Male',false:'Female'}" name="user.profile.gender"/></td>

                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.salutation"/></td>
                                    <td ><s:textfield name="user.profile.salutation" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.firstName"/></td>
                                    <td ><s:textfield name="user.profile.firstName" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.lastName"/></td>
                                    <td ><s:textfield name="user.profile.lastName" size="40" maxlength="40"/></td>
                                </tr>
                                <tr>
                                    <td><s:text name="fieldLabel.mobileNumber"/></td>
                                    <td ><s:textfield name="user.profile.mobileNumber" size="40" maxlength="40"/></td>
                                </tr>
                                <tr>
                                    <td><s:text name="fieldLabel.officeNumber"/></td>
                                    <td ><s:textfield name="user.profile.officeNumber" size="40" maxlength="40"/></td>
                                </tr>
                                <tr>
                                    <td><s:text name="fieldLabel.address1"/></td>
                                    <td ><s:textfield name="user.profile.address1" size="40" maxlength="40"/></td>
                                </tr>
                                <tr>
                                    <td><s:text name="fieldLabel.address2"/></td>
                                    <td ><s:textfield name="user.profile.address2" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.address3"/></td>
                                    <td ><s:textfield name="user.profile.address3" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.city"/></td>
                                    <td ><s:textfield name="user.profile.city" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.country"/></td>
                                    <td ><s:textfield name="user.profile.country" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.postalCode"/></td>
                                    <td ><s:textfield name="user.profile.postalCode" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.website"/></td>
                                    <td ><s:textfield name="user.profile.website" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td><s:text name="fieldLabel.blog"/></td>
                                    <td ><s:textfield name="user.profile.blog" size="40" maxlength="40"/></td>
                                </tr>

                                <tr>
                                    <td></td>
                                    <td>
                                        <s:submit label="button.label.submit"/>
                                    </td>
                                </tr>
                            </table>
                        </s:form>
                    </div>
                    <div class="row-fluid">
                    </div>
                </div>
            </div>
        </div>
        <s:include value="/jsp/footer.jsp"/>
    </body>
</html>
